<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  <title>皮牙子的三角洲改枪码</title>
  <!-- 引入苹果苹果 San Francisco 字体近似替代 -->
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
  
  <style>
    /* 重置基础样式 */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      /* 设置固定背景图 */
      background-image: url("https://pic3.zhimg.com/v2-7b267ae40b53a1d23b64c839280fa9c4_r.jpg");
      background-size: cover;
      background-position: center;
      background-attachment: fixed; /* 背景图固定不滚动 */
      background-repeat: no-repeat;
      min-height: 100vh;
      
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      padding: 16px;
    }

    /* 表格容器卡片化 - 添加透明和毛玻璃效果 */
    .table-card {
      width: 100%;
      max-width: 900px;
      margin: 0 auto 24px;
      /* 70% 透明度 */
      opacity: 0.7;
      /* 毛玻璃效果 */
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      background-color: rgba(255, 255, 255, 0.7); /* 半透明白色背景 */
      
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      overflow: hidden;
      transition: all 0.3s ease;
    }
    
    /* 悬停时略微增加不透明度，提升交互感 */
    .table-card:hover {
      opacity: 0.85;
    }

    /* 表格标题栏 */
    .table-header {
      background-color: rgba(249, 249, 249, 0.8);
      padding: 16px;
      font-size: 16px;
      font-weight: 600;
      color: #333;
      border-bottom: 1px solid rgba(229, 229, 229, 0.8);
      text-align: center;
    }

    /* 表格主体 */
    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 15px;
    }

    /* 单元格基础样式 */
    td {
      padding: 14px 16px;
      color: #444;
      border-bottom: 1px solid rgba(229, 229, 229, 0.8);
      vertical-align: middle;
    }

    /* 最后一行单元格去掉下边框 */
    tr:last-child td {
      border-bottom: none;
    }

    /* A 列样式 */
    td:first-child {
      width: 32%;
      background-color: rgba(251, 251, 251, 0.7);
      font-weight: 500;
      color: #555;
      text-align: left;
    }

    /* B 列样式 */
    td:nth-child(2) {
      width: 53%;
      text-align: left;
    }

    /* C 列样式（按钮列） */
    td:last-child {
      width: 15%;
      text-align: center;
    }

    /* 复制按钮样式 */
    .copy-btn {
      background-color: rgba(0, 122, 255, 0.9);
      color: #fff;
      border: none;
      padding: 8px 12px;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
      width: 100%;
      white-space: nowrap;
    }

    .copy-btn:hover {
      background-color: rgba(0, 122, 255, 1);
    }

    .copy-btn:active {
      transform: scale(0.95);
    }

    /* 响应式适配 */
    @media (max-width: 768px) {
      .table-card {
        border-radius: 10px;
      }
      
      td {
        font-size: 14px;
        padding: 12px 10px;
      }
      
      td:first-child {
        width: 35%;
      }
      
      td:nth-child(2) {
        width: 45%;
      }
      
      td:last-child {
        width: 20%;
      }
      
      .copy-btn {
        font-size: 13px;
        padding: 6px 8px;
      }
    }

    @media (max-width: 480px) {
      td:first-child {
        width: 30%;
        font-size: 13px;
      }
      
      td:nth-child(2) {
        width: 45%;
        font-size: 13px;
      }
      
      td:last-child {
        width: 25%;
      }
    }
  </style>
</head>
<body>

<!-- 表格5 -->
  <div class="table-card">
    <div class="table-header">主包推荐</div>
    <table>
      <tr>
        <td>无敌消音M14（难压）</td>
        <td>M14射手步枪-烽火地带-6GPT20G07ODLT6ETQT3GS</td>
        <td><button class="copy-btn" onclick="copyContent(this)">复制</button></td>
      </tr>
      <tr>
        <td>SMG-45冲锋枪（爆闪修脚）</td>
        <td>SMG-45冲锋枪-烽火地带-6GT99F8001UAG24PPPV0T</td>
        <td><button class="copy-btn" onclick="copyContent(this)">复制</button></td>
      </tr>
      <tr>
        <td>AS Val突击步枪</td>
        <td>AS Val突击步枪-烽火地带-6GCI31407ODLT6ETQT3GS</td>
        <td><button class="copy-btn" onclick="copyContent(this)">复制</button></td>
      </tr>
    </table>
  </div>

  <!-- 表格1 -->
  <div class="table-card">
    <div class="table-header">冲锋枪</div>
    <table>
      <tr>
        <td>QCQ171冲锋枪（15~40m）</td>
        <td>QCQ171冲锋枪-烽火地带-6H2I5300EKF6KOSMHUMIK</td>
        <td><button class="copy-btn" onclick="copyContent(this)">复制</button></td>
      </tr>
      <tr>
        <td>MP5冲锋枪（可腰射）（5~30m）</td>
        <td>MP5冲锋枪-烽火地带-6H2I7U00EKF6KOSMHUMIK</td>
        <td><button class="copy-btn" onclick="copyContent(this)">复制</button></td>
      </tr>
      <tr>
        <td>SMG-45冲锋枪（爆闪修脚）（5~20m）</td>
        <td>SMG-45冲锋枪-烽火地带-6H3I2BG0EKF6KOSMHUMIK</td>
        <td><button class="copy-btn" onclick="copyContent(this)">复制</button></td>
      </tr>
      <tr>
        <td>SR-3M紧凑突击步枪（碎甲）（15~30m）</td>
        <td>SR-3M紧凑突击步枪-烽火地带-6H3I7O00EKF6KOSMHUMIK</td>
        <td><button class="copy-btn" onclick="copyContent(this)">复制</button></td>
      </tr>
      <tr>
        <td>勇士冲锋枪（修脚）（5~20m）</td>
        <td>勇士冲锋枪-烽火地带-6H3IATO0EKF6KOSMHUMIK</td>
        <td><button class="copy-btn" onclick="copyContent(this)">复制</button></td>
      </tr>
    </table>
  </div>

  <!-- 表格2 -->
  <div class="table-card">
    <div class="table-header">步枪</div>
    <table>
      <tr>
        <td>K437突击步枪（20~50m）</td>
        <td>K437突击步枪-烽火地带-6H2ICPS0EKF6KOSMHUMIK</td>
        <td><button class="copy-btn" onclick="copyContent(this)">复制</button></td>
      </tr>
    </table>
  </div>

  <!-- 表格3 -->
  <div class="table-card">
    <div class="table-header">狙击枪</div>
    <table>
      <tr>
        <td>M700狙击步枪</td>
        <td>M700狙击步枪-烽火地带-6H2IJ9G0EKF6KOSMHUMIK</td>
        <td><button class="copy-btn" onclick="copyContent(this)">复制</button></td>
      </tr>
    </table>
  </div>

  <!-- 表格4 -->
  <div class="table-card">
    <div class="table-header">机枪</div>
    <table>
      <tr>
        <td>PKM通用机枪（15~40m）</td>
        <td>PKM通用机枪-烽火地带-6H34OKK0EKF6KOSMHUMIK</td>
        <td><button class="copy-btn" onclick="copyContent(this)">复制</button></td>
      </tr>
    </table>
  </div>

  <script>
    // 复制逻辑
    function copyContent(btn) {
      const bColumn = btn.parentNode.parentNode.querySelector('td:nth-child(2)');
      const content = bColumn.textContent;
      
      // 尝试使用 Clipboard API 复制
      navigator.clipboard.writeText(content)
        .then(() => {
          // 交互反馈：按钮状态变化
          const originalText = btn.textContent;
          btn.textContent = '已复制';
          btn.style.backgroundColor = '#34c759'; // iOS 绿色
          
          // 1秒后恢复原状
          setTimeout(() => {
            btn.textContent = originalText;
            btn.style.backgroundColor = 'rgba(0, 122, 255, 0.9)';
          }, 1000);
        })
        .catch(err => {
          console.error('复制失败:', err);
          alert('复制失败，请检查浏览器权限');
        });
    }
  </script>
</body>
</html>
